package com.guoheng.hazard.sys.controller.wuZhongData;

import com.alibaba.fastjson.JSONObject;
import com.guoheng.hazard.sys.service.wuZhongData.SongGangDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: cespimp-hazard-server
 * @description:
 * @author: fbl
 * @create: 2020-07-31 07:34
 **/
@RestController
@Validated
@Api(value = "淞港数据对接接口")
public class SongGangDataController {

    @Resource
    SongGangDataService songGangDataService;

    @ApiOperation(value = "接受淞港数据推送")
    @PostMapping(value = "songgang/transfer-data")
    public void songGangDataTransfer(@RequestBody JSONObject jsonObject) {
        songGangDataService.songGangDataTransfer(jsonObject);
    }
}
